<?php include BASE_PATH.'install/step/header.tpl.php';?>
	<div class="container">
		<div id="bar" class="progress progress-striped active" style="margin-top: 100px;">
			<div class="bar" style="width: 25%;"></div>
		</div>
		<div class="well fade in">
			<div class="tabbable tabs-left">
			  <ul class="nav nav-tabs">
				<?php for($i=1; $i<=count($steps); $i++){ ?>
					<li <?php if($step==$i) { ?> class="active" <?php } ?> ><a data-toggle="tab"><?php echo $steps[$i]; ?></a></li>
                <?php } ?>
              </ul>
			  <div class="tab-content">
				<table class="table table-bordered">
				  <thead>
					<tr>
					  <th>检查项目</th>
					  <th>当前环境</th>
					  <th>建议</th>
					  <th>功能影响</th>
					</tr>
				  </thead>
				  <tbody>
					<tr>
						<td>操作系统</td>
						<td><?php echo php_uname();?></td>
						<td>Windows_NT/Linux/Freebsd</td>
						<td><i class="icon-ok"></i></td>
					 </tr>
					<tr>
						<td>WEB 服务器</td>
						<td><?php echo $_SERVER['SERVER_SOFTWARE'];?></td>
						<td>Apache/Nginx/IIS</td>
						<td><i class="icon-ok"></i></td>
					 </tr>
					<tr>
						<td>PHP 版本</td>
						<td>PHP <?php echo phpversion();?></td>
						<td>PHP 5.2.0 及以上</td>
						<td><?php if(phpversion() >= '5.2.0'){ ?><i class="icon-ok"></i><?php }else{ ?><font class="red"><i class="icon-remove"></i>&nbsp;无法安装</font><?php }?></font></td>
					</tr>
					<tr>
						<td>MYSQL 扩展</td>
						<td><?php if(extension_loaded('mysql')){ ?>√<?php }else{ ?>×<?php }?></td>
						<td>必须开启</td>
						<td><?php if(extension_loaded('mysql')){ ?><i class="icon-ok"></i><?php }else{ ?><font class="red"><i class="icon-remove"></i>&nbsp;无法安装</font><?php }?></td>
					</tr>
				  </tbody>
				</table>
			  </div>
			</div>
		</div>
		<?php if($is_right) { ?>
		<div class="row-fluid">
			<div class="span2 offset5">
				<a class="btn btn-large btn-block btn-primary" href="install.php?step=2">开始安装</a>
			</div>
		</div>
		<?php }else{ ?>
		<div class="alert alert-error">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <strong>糟糕!</strong> 当前配置不满足安装需求，无法继续安装！
        </div>
		<?php }?>
	</div>
</body>
</html>